$(function(){
	//点击高亮
	$(document).on("click",".m-lst",function(){
		$(".m-lst").find("span").removeClass("active");
		$(this).find("span").addClass("active");
	})
	
	//视频录播课程和视频回放状态的切换
	$(document).on("click",".m-bd-tt li",function(){
		$(this).addClass("active").siblings().removeClass("active");
		var index=$(this).index();
		$(".m-wrap .m-bd-ct").eq(index).show().siblings().hide();
	});
	
	//点击展开收缩
	$(document).on("click",".m-tt",function(){
		if($(this).next().children("li").css("display") == "none"){
			$(this).next().children("li").css("display","block");
			$(this).children("i").css("background","url(img/prev_select.png) no-repeat 90% 7px");
		}else{
			$(this).next().children("li").css("display","none");
			$(this).children("i").css("background","url(img/next.png) no-repeat 90% 7px");			
		}
	
	})
	
	//点击删除
	$(document).on("click",".m-h-d",function(){
		alert("点击了删除");
	})
	//点击修改
	$(document).on("click",".m-h-x",function(){
		alert("点击了修改");
	})
})

		